
function move(which, studyId) {
	var targetPage = which.name;
	
//	if(targetPage == "fine") targetPage = "manageStudy_fine.jsp?studyId=" + studyId;
//	else if(targetPage == "allowJoinStudy") targetPage = "manageStudy_allow.jsp?studyId=" + studyId;
//	else if(targetPage == "memInfo") targetPage = "manageStudy_memInfo.jsp?studyId=" + studyId;
//	else targetPage = null;
//	
	if(targetPage == "fine") targetPage = "ShowFine.Study?studyId=" + studyId
	else if(targetPage == "allowJoinStudy") targetPage = "Accept.Study?studyId=" + studyId;
	else if(targetPage == "memInfo") targetPage = "ShowMem.Study?studyId=" + studyId;
	else targetPage = null;

	location.href = targetPage;
}
function allowJoin(which, studyId) {
	alert("스터디신청 수락");
	var uri = "AcceptAction.Study";
	var memId = which.id;
	
	location.href = uri + "?targetId=" + memId + "&studyId=" + studyId;
}
function showBlockInfo(elementId) {
	var style =document.getElementById(elementId).style.display;
	if(style == "none") {
		document.getElementById(elementId).style.display = "block";
	}
	else
		document.getElementById(elementId).style.display = "none";
}